//
//  UIWidget.h
//  storeapp
//
//  Created by huangyi on 13-3-13.
//  Copyright (c) 2013年 ios. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UIWidget : UIView

@property(nonatomic,assign)id delegate;

@property(nonatomic,strong)NSString *identifier;
@property(nonatomic,strong)NSDictionary *templateDictionary;

+(UIWidget*)widgetWithTemplateFile:(NSString*)file;
+(UIWidget*)widgetWithTemplateDictionary:(NSDictionary*)dictionary;
+(UIWidget*)widgetWithTemplateString:(NSString*)string;
-(void)setVar:(NSDictionary*)var;

-(id)viewWithIdentifier:(NSString*)identifier;

@end

/*
 UIView = button
 UIImageView = image
 UILabel = text
 UITextField = textfield
 */
